//
//  TTTableViewCell.m
//  Tint
//
//  Created by Kevin Wu on 3/8/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TTTableViewCell.h"

@implementation TTTableViewCell


#pragma mark - Accessors

@synthesize delegate = _delegate;



#pragma mark - Memory

- (id)init {
    self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[[self class] reuseIdentifier]];
    if (self) {
    }
    return self;
}

- (id)initWithStyle:(UITableViewCellStyle)style {
    self = [super initWithStyle:style reuseIdentifier:[[self class] reuseIdentifier]];
    if (self) {
    }
    return self;
}

- (void)dealloc {
    _delegate = nil;
    [super dealloc];
}



#pragma mark - Public

- (void)cellValueWillChange {
    [(NSObject *)_delegate runSelectorOnMainThread:@selector(cellValueWillChange:) withObject:self];
}

- (void)cellValueDidChange {
    [(NSObject *)_delegate runSelectorOnMainThread:@selector(cellValueDidChange:) withObject:self];
}



#pragma mark - UITableViewCell

- (void)prepareForReuse {
    [super prepareForReuse];
    _delegate = nil;
}

@end

